import request from '@/utils/request'

// 查询参数列表
export function listSeparate(query) {
  return request({
    url: '/system/separate/account/list',
    method: 'get',
    params: query
  })
}

// 查询参数详细
export function getSeparate(configId) {
  return request({
    url: '/system/separate/account/' + configId,
    method: 'get'
  })
}
// 新增参数配置
export function addSeparate(data) {
  return request({
    url: '/system/separate/account',
    method: 'post',
    data: data
  })
}

// 修改参数配置
export function updateSeparate(data) {
  return request({
    url: '/system/separate/account',
    method: 'put',
    data: data
  })
}
// 删除参数配置
export function delSeparate(configId) {
  return request({
    url: '/system/separate/account/' + configId,
    method: 'delete'
  })
}

export function openSafe(data) {
  return request({
    url: '/system/separate/account/openSafe',
    method: 'post',
    data: data
  })
}